#include "student.h"
#include <QDebug>

Student::Student(QObject *parent)
    :QObject(parent)
{
    // 将类注册到元类型中
    qRegisterMetaType<Student>("Student");
}

QString Student::getName()
{
    return _name;

}

void Student::setName(const QString &name)
{
    _name = name;

}

void Student::func()
{
    qDebug() << "Student::func()被调用了!!";

}
